package org.zjx.common.route.routes;


import lombok.Getter;
import lombok.Setter;
import org.zjx.common.route.AbstractRoute;
import org.zjx.common.route.bean.Address;
import org.zjx.common.route.bean.Coordinate;

import java.util.List;

/**
 * 跨城 NPC对话传送
 */
@Getter
@Setter
public class TransferNPCRoute extends AbstractRoute {
    private String npcName;
    private Address npcAddress;
    private List<String> dialogues;

    private Coordinate screenSize;//场景大小

    public TransferNPCRoute(Address startAddress, Address endAddress) {
        super(startAddress, endAddress, 5);
        if (startAddress == null || endAddress == null) throw new NullPointerException();
        if (startAddress.getCity().equals(endAddress.getCity())) throw new IllegalArgumentException();
    }
}
